package com.phospherus.common.service;

import com.phospherus.common.AttachedFile;
import com.phospherus.common.repository.AttachedFileRepository;

import java.util.List;

/**
 * @author songjinlong
 * @version 1.0
 * @since 2017/12/21
 */
public interface IAttachedFileService extends IBaseService<AttachedFile, Long, AttachedFileRepository> {
    void addCustomerAttachedFile(String attachedFileNames, Long customerId);

    void addFormInstAttachedFile(String attachedFileNames, Long formInstId, String tabName, Long tabId);

    AttachedFile addNewAttacheFile(String fileName, String realFileName);

    List<AttachedFile> getFormAttachedFiles(Long formInstId, Long tabId, String tabName);
}
